<!--
  To change this template, choose Tools | Templates
  and open the template in the editor.
-->

<%@ page contentType="text/html;charset=UTF-8" %>

<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>Sample title</title>
  </head>
  <body>
    <h1>Read Wine Region</h1>
    
    ${flash.message}
    
    <br/><br/>
    <table>
        <tr>
          <th>Wine Region</th>
          <th>Description</th>
          <th>Country</th>
          <th></th>
        </tr>
    
        <g:each in="${wineRegions}" var="instance" status="s">
    
          <tr>
            <input type="hidden" name="id" value="${instance.id}" />
            <td>${instance.regionName}</td>
            <td>${instance.description}</td>
            <td>${instance.country}</td>
<!--try to pass wineregionId instead, the desc is going to get too long one day to pass through URL-->
            <td><a href="http://localhost:8088/WineXpressClient/wineRegionUpdate?id=${instance.id}&regionName=${instance.regionName}&description=${instance.description}&country=${instance.country}"/>Edit</td>
          </tr>
        
        </g:each>
    </table>
  </body>
</html>
